import Login from './views/login/login.vue'
import Home from './views/home.vue'
import Index from './views/index/index.vue'
import MenuNode from './views/suim/menuNode.vue'
import MenuMethod from './views/suim/menuMethod.vue'
import LandlordManage from './views/landlord/landlordManage.vue'
import LandlordReview from './views/landlord/landlordReview.vue'
import HouseManageList from './views/house/houseManageList.vue'
import FirstExamine from './views/house/firstExamine.vue'
import ContractList from './views/contract/contractList.vue'
import LoanList from './views/loanOrder/loanList.vue'
import LoanExamineList from './views/loanOrder/loanExamineList.vue'
import OrderExamineList from './views/loanOrder/orderExamineList.vue'

let routes = [
// {
//     path: '/',
//     redirect: '/index'
// },
    {
        path: '/login',
        name: 'login',
        hidden: true,
        component: Login,

    },
    {
        path: '/',
        component: Home,
        name: '主页',
        iconCls: 'home',
        leaf: true, //只有一个节点
        children: [
            {path: '/index', component: Index, name: '首页' }
        ]
    }, {
        path: '/',
        component: Home,
        name: '系统基础模块',
        iconCls: 'gear-b',
        children: [
            {path: '/menuNode', component: MenuNode, name: '菜单信息管理'},
            {path: '/menuMethod', component: MenuMethod, name: '菜单方法管理'}
        ]
    },
    {
        path: '/',
        component: Home,
        name: '房东信息管理',
        iconCls: 'person-stalker',
        children: [
            {path: '/landlordManage', component: LandlordManage, name: '房东综合管理'},
            {path: '/landlordReview', component: LandlordReview, name: '房东资质审核'}
        ]
    },
    {
        path: '/',
        component: Home,
        name: '房源信息管理',
        iconCls: 'ios-folder',
        children: [
            {path: '/houseManageList', component: HouseManageList, name: '房源综合管理列'},
            {path: '/firstExamine', component: FirstExamine, name: '初步审核'}
        ]
    },
    {
        path: '/',
        component: Home,
        name: '合同管理',
        iconCls: 'document-text',
        children: [
            {path: '/contractList', component: ContractList, name: '合同列表'}
        ]
    },
    {
        path: '/',
        component: Home,
        name: '放款管理',
        iconCls: 'person-stalker',
        children: [
            {path: '/loanList', component: LoanList, name: '放款订单综合管理'},
            {path: '/loanExamineList', component: LoanExamineList, name: '放款审核'},
            {path: '/orderExamineList', component: OrderExamineList, name: '订单放款'}
        ]
    },
]
export default routes;